package com.anlu.pattern.structrue.bridge;

import com.anlu.pattern.structrue.bridge.bag.BagAbstraction;
import com.anlu.pattern.structrue.bridge.bag.BigBag;
import com.anlu.pattern.structrue.bridge.material.Material;
import com.anlu.pattern.structrue.bridge.material.Paper;

/**
 * 桥接模式的客户端
 */
public class BridgeClient {


    public static void main(String[] args) {
        //设置袋子型号
        BagAbstraction bag =new BigBag();

        //袋子材质
        Material material = new Paper();
        bag.setMaterial(material);

        //開始採摘
        bag.pick();

    }
}
